﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace HelloWorld {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "user", DisableSyncStructure = true)]
	public partial class User {

		[JsonProperty, Column(Name = "id", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		[JsonProperty, Column(Name = "gender")]
		public UserGENDER Gender { get; set; }

		[JsonProperty, Column(Name = "name", StringLength = 100)]
		public string Name { get; set; }

	}

	public enum UserGENDER {
		male = 1, female, other
	}
}
